﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Auths
{
    /// <summary>
    /// 数据权限
    /// </summary>
    [Table("Auth_DataPermissions")]
    public class DataPermission : Entity<int>, IHasCreationTime
    {
        public int? TenantId { get; set; }

        public int UserId { get; set; }
        /// <summary>
        /// 可展示的用户Id
        /// </summary>
        public int ParentId { get; set; }

        public DateTime CreationTime { get; set; }

    }
}
